package com.yj.cmp.sdk.fusioncompute.network.securitygroup;

import com.yj.cmp.sdk.fusioncompute.network.securitygroup.dto.SecurityGroupDto;
import com.yj.cmp.sdk.fusioncompute.network.securitygroup.vo.SecurityGroupVo;
import com.yj.cmp.sdk.fusioncompute.network.securitygroup.vo.SecurityGroupsListVo;
import org.springframework.stereotype.Service;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;

import java.util.Map;

/**
 * @author Harvey_Yang
 * @date 2021/8/30 17:58
 */
@Service
public interface FcSecurityGroupService {

    @GET("securitygroups")
    Call<SecurityGroupsListVo> securityGroupsList(@HeaderMap Map<String, Object> headers, @HeaderMap Map<String, Object> queryParam);

    @POST("securitygroups/addsecuritygroup ")
    Call<SecurityGroupVo> createSecurityGroup(@HeaderMap Map<String, Object> headerMap, @Body SecurityGroupDto securityGroupDto);
}
